cmake_minimum_required(VERSION 3.13.4)
project(fajal VERSION 0.1.0)

# include(CTest)
# enable_testing()

# 指定C++标准
set(CMAKE_CXX_STANDARD 17)

set(BAN_BACKEND OFF)
set(LIB_DEBUG ON)

# 指定include搜索目录
include_directories(${PROJECT_SOURCE_DIR}/include)

if (UNIX)
    add_subdirectory(./src)
else(UNIX)
    message(FATAL_ERROR "Linux is supported only")
endif(UNIX)

add_subdirectory(./test)


# 链接第三方库
# target_link_libraries(main PRIVATE boost_system boost_thread boost_chrono pthread boost_filesystem ssl crypt)

# 指定静态/动态库所在目录
# link_directories(${PROJECT_SOURCE_DIR}/lib)

# set(CPACK_PROJECT_NAME ${PROJECT_NAME})
# set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
# include(CPack)
